package cn.shun.dao;

import cn.shun.annotation.PageX;
import cn.shun.model.Product;
import cn.shun.model.ProductQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductDao {
    @PageX
    List<Product> select(ProductQuery query);

    int insert(Product entity);

    int update(Product entity);

    int delete(Integer id);
}